package com.omega.encryptedsql.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.omega.encryptedsql.po.Employee;

import java.util.List;

public interface EmployeeService extends IService<Employee> {
    Employee getEmployeeById(Long id);

    boolean saveEmployee(Employee employee);

    Page<Employee> listEmployees(Page<Employee> page);

    boolean updateEmployee(Employee employee);

    List<Employee> searchWithName(String name);

    List<Employee> searchWithNameNoLambda(String name);
}
